import java.net.*;
import java.io.*;

class Connection
{
    Socket socket;
    OutputStream out;
    ObjectOutputStream objOut;
    InputStream in;
    ObjectInputStream objIn;

    public Connection(Socket connectionsocket)
    {
        try
        {
            System.out.println("Attempting...");
            this.socket = connectionsocket;
            out = socket.getOutputStream();
            objOut = new ObjectOutputStream(out);
            in = socket.getInputStream();
            objIn = new ObjectInputStream(in);
        }
        catch (Exception e)
        {
            System.out.println("Fail");
            System.out.println("Exception: " + e);
            e.printStackTrace();
        }
    }
}
